/*
 * @Author: 郭招娣 10615594+guo-zhaodi@user.noreply.gitee.com
 * @Date: 2022-08-16 14:21:02
 * @LastEditors: 郭招娣 10615594+guo-zhaodi@user.noreply.gitee.com
 * @LastEditTime: 2022-08-19 09:31:16
 * @FilePath: \后端管理系统\app\src\api\login.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import { getUrl ,putUrl , postUrl, deleteUrl} from "@/utils/request";

/**
 * @description: 用户数据列表
 * @param {*} url
 * @param {*} params
 * @return {*}
 */
export const httpUsers = async (url, params) => await getUrl(url,params)


/**
 * @description: 修改用户状态
 * @param {*} url
 * @param {*} params
 * @return {*}
 */
export const httpUsersType = async (url, params) => await putUrl(url, params)



/**
 * @description: 用户状态
 * @param {*} url
 * @param {*} params
 * @return {*}
 */
export const httpAddUsers = async (url, params) => await postUrl(url, params)

/**
 * @description: 编辑用户提交
 * @param {传递参数} params
 * @param {id} uId
 * @param {状态} type
 * @return {*}
 */

export const httpEditUsers = async (url, params) => await putUrl(url, params)
     
/**
 * @description: 编辑用户提交
 * @param {传递参数} params
 * @param {id} uId
 * @param {状态} type
 * @return {*}
 */

export const httpDeleteUsers = async (url, params) => await deleteUrl(url, params)
